/* eslint-disable react/prop-types */
import React from 'react';
import { EchartsComp } from './echarts';
import { DealElect } from './helper';

export function ChartDealElect({ data = {}, scale = 1, isPower, getRef = () => {} }) {
  return <EchartsComp config={DealElect(data, scale, isPower)} getRef={getRef} />;
}
